package com.snow.useviewdemo.util.lifecyler;

import android.app.Activity;

/**
 * Created by zhaoyingtao
 * Date: 2020/12/15
 * Describe:
 */
public interface SNLifecycleListener {
    void onBecameForeground(Activity activity);

    void onBecameBackground(Activity activity);

    default void onActivityCreated(Activity activity) {

    }

    default void onActivityStarted(Activity activity) {

    }

    default void onActivityStopped(Activity activity) {

    }

    default void onActivitySaveInstanceState(Activity activity) {

    }

    default void onActivityDestroyed(Activity activity) {

    }
}
